﻿using System.Windows.Media;

namespace X.WPF.Controls.Models
{
    /// <summary>
    /// 堆积占比
    /// </summary>
    public class StackedRatio
    {

        #region # 构造器

        #region 00.创建堆积占比模型构造器
        /// <summary>
        /// 创建堆积占比模型构造器
        /// </summary>
        public StackedRatio()
        {

        }
        #endregion

        #region 01.创建堆积占比模型构造器
        /// <summary>
        /// 创建堆积占比模型构造器
        /// </summary>
        /// <param name="ratio">比例</param>
        /// <param name="color">颜色</param>
        public StackedRatio(double ratio, Color color)
        {
            this.Ratio = ratio;
            this.Color = color;
        }
        #endregion

        #endregion

        #region # 属性

        #region 比例 —— double Ratio
        /// <summary>
        /// 比例
        /// </summary>
        public double Ratio { get; set; }
        #endregion

        #region 颜色 —— Color Color
        /// <summary>
        /// 颜色
        /// </summary>
        public Color Color { get; set; }
        #endregion

        #endregion

    }

}